import request from '@/utils/request'

// 查询报废入库管理列表
export function listScrapInbound(query) {
  return request({
    url: '/InboundManagement/scrapInbound/list',
    method: 'get',
    params: query
  })
}

// 查询报废入库管理详细
export function getScrapInbound(scrapId) {
  return request({
    url: '/InboundManagement/scrapInbound/' + scrapId,
    method: 'get'
  })
}

// 新增报废入库管理
export function addScrapInbound(data) {
  return request({
    url: '/InboundManagement/scrapInbound',
    method: 'post',
    data: data
  })
}

// 修改报废入库管理
export function updateScrapInbound(data) {
  return request({
    url: '/InboundManagement/scrapInbound',
    method: 'put',
    data: data
  })
}

// 删除报废入库管理
export function delScrapInbound(scrapId) {
  return request({
    url: '/InboundManagement/scrapInbound/' + scrapId,
    method: 'delete'
  })
}
